package com.yswy.backstage.dto.api;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yswy.domain.common.BasePojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.zip.CRC32;

@Data
@ApiModel("用户设备信息")
public class UserDeviceInfo {

    @ApiModelProperty("用户 Id")
    private Long userId ;
    @ApiModelProperty("用户 Ip")
    private String ip ;


    @ApiModelProperty("设备 ID")
    private String deviceId;
    @ApiModelProperty("deviceIdCrc")
    private Long deviceIdCrc ;
    @ApiModelProperty("设备型号")
    private String modelInfo;
    @ApiModelProperty("设备版本号")
    private String versionInfo;
    @ApiModelProperty("系统版本号")
    private String systemInfo;

    @ApiModelProperty("imea")
    private String imei;
    @ApiModelProperty("苹果 Idfa")
    private String idfa;
    @ApiModelProperty("苹果 Idfa")
    private Long idfaCrc;
    @ApiModelProperty("oaid")
    private String oaid ;
    @ApiModelProperty("oaidCrc")
    private Long oaidCrc ;
    @ApiModelProperty("vaid")
    private String vaid ;
    @ApiModelProperty("aaid")
    private String aaid  ;

    @ApiModelProperty("系统 ios  android")
    private String systemDevice = "android";
    @ApiModelProperty("mac")
    private String mac;
    @ApiModelProperty("android ID")
    public String androidId;
    @ApiModelProperty("是否root")
    public boolean isRoot;
    @ApiModelProperty("判断设备 ADB 是否可用")
    public boolean isAdbEnabled;
    @ApiModelProperty("获取设备系统版本码")
    public int sdkVersionCode;
    @ApiModelProperty("厂商")
    public String manufacturer;
    @ApiModelProperty("是否是平板")
    public boolean isTablet;
    @ApiModelProperty("否是模拟器")
    public boolean isEmulator;


}
